#ifndef __FONTLISTMODEL__H__
#define __FONTLISTMODEL__H__

#include <QObject>
#include <QStandardItemModel>

class FontListModel : public QStandardItemModel
{
    Q_OBJECT
public:
    explicit FontListModel(QObject *parent = nullptr);

    enum FontViewRole {
        TitleRole,
        ContentCNRole,
        ContentENRole,
        FontIdRole,
        FontFamilyRole,
        FontWeightRole,
    };

    QString m_title;
    QString m_contentCn;
    QString m_contentEn;

    QList<QString> m_fonts;

    // QAbstractItemModel interface
//public:
//    int rowCount(const QModelIndex &parent) const override;
//    QVariant data(const QModelIndex &index, int role) const override;


public slots:
    void appendFamily(const QString &family);
};

#endif  //!__FONTLISTMODEL__H__
